package main

import (
	"eznat/service"
	"flag"
)

func main() {
	mode := flag.String("mode", "gui", "运行模式 gui，cli")
	flag.Parse()

	switch *mode {
	case "gui":
		uiService := service.NewUI()
		uiService.Start()
		break
	case "cli":
		natService := service.NewChannelService()
		natService.Start()
		break
	case "h":
		flag.Usage()
		break
	case "help":
		flag.Usage()
	}
}
